package day03;

import com.sun.org.apache.xerces.internal.dom.ElementDefinitionImpl;

public class IfElseDemo {
    public static void main(String[] args) {
        //3000打5折，满2000小于3000打6折，满1000小于2000打7折，小于1000打9折
        double price =2000.0;
        if (price>=3000){
            price*= 0.5;
        }else if (price>=2000){
            price*=0.6;
        }else if (price>=1000){
            price*=0.7;
        }else{
            price*=0.9;
        }
        System.out.println("您本次消费为："+price+"元。");
        int a=55,b=66;
        int max=a>b?a:b;
        System.out.println(max);



    }
}
